using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Ltf.MonitorLizard.Controls
{
	public partial class SidewaysText : UserControl
	{
		public SidewaysText()
		{
			InitializeComponent();
		}

		protected override void OnPaint(PaintEventArgs e)
		{
			base.OnPaint(e);
			Graphics g = this.CreateGraphics();
			g.RotateTransform(270);
			g.DrawString(this.Text, this.Font, new SolidBrush(this.ForeColor), -this.Height, -0);
		}

		[Browsable(true)]
		[Category("Appearance")]
		[Description("The text to be shown sideways")]
		public override string Text
		{
			get
			{
				return base.Text;
			}
			set
			{
				base.Text = value;
			}
		}

	}
}
